//
//  ZPwaihuTableViewCell.m
//  HCNewGoldFinger
//
//  Created by 刘琛 on 2017/6/14.
//  Copyright © 2017年 zjhcsoftios. All rights reserved.
//

#import "ZPwaihuTableViewCell.h"

@implementation ZPwaihuTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    

}

- (void)setModel:(ZPwaihuModel *)model {
    _model = model;
    UILabel *black = (UILabel *)[self viewWithTag:200];
    UILabel *phone = (UILabel *)[self viewWithTag:201];
    black.textColor = [UIColor lightGrayColor];
    if (model.heiFlag) {
        phone.textColor = [UIColor lightGrayColor];
        _labelTop.constant = 3;
        black.text = @"免打扰";
    }else {
        phone.textColor = [UIColor blackColor];
        _labelTop.constant = 13;
        black.text = @"";
    }
    phone.text = model.phone;
    
    UIImageView *update = [self viewWithTag:104];
    if (model.updateFlag) {
        update.image = [UIImage imageNamed:@"icon_点赞s"];
    }else {
        update.image = [UIImage imageNamed:@"icon_点赞"];
    }
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
